import request from '@/utils/request'

// 查询便民服务提供商列表
export function listHealthSupplier(query) {
  return request({
    url: '/health/healthSupplier/list',
    method: 'get',
    params: query
  })
}

// 查询便民服务提供商详细
export function getHealthSupplier(id) {
  return request({
    url: '/health/healthSupplier/' + id,
    method: 'get'
  })
}

// 新增便民服务提供商
export function addHealthSupplier(data) {
  return request({
    url: '/health/healthSupplier',
    method: 'post',
    data: data
  })
}

// 修改便民服务提供商
export function updateHealthSupplier(data) {
  return request({
    url: '/health/healthSupplier',
    method: 'put',
    data: data
  })
}

// 删除便民服务提供商
export function delHealthSupplier(id) {
  return request({
    url: '/health/healthSupplier/' + id,
    method: 'delete'
  })
}
